package cn.silver.module.oss.domain;

import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author zhouxiaobo
 */
@Data
@NoArgsConstructor
@Table(name = "oss_image")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "OssImage", title = "对象存储管理-文件缩略图信息")
public class OssImage extends BaseEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 文件id
     */
    @Schema(title = "文件id")
    private String fileId;
    /**
     * 图片宽度
     */
    @Schema(title = "图片宽度")
    private Integer imageWidth;
    /**
     * 图片高度
     */
    @Schema(title = "图片高度")
    private Integer imageHeight;
    /**
     * 默认宽度
     */
    @Schema(title = "默认宽度")
    private Integer defaultWidth;
    /**
     * 默认高度
     */
    @Schema(title = "默认高度")
    private Integer defaultHeight;
}
